<html>
<head><meta charset="utf-8"><title>GATs and closure traits · wg-traits · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/index.html">wg-traits</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/GATs.20and.20closure.20traits.html">GATs and closure traits</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="160531643"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/GATs%20and%20closure%20traits/near/160531643" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/GATs.20and.20closure.20traits.html#160531643">(Mar 12 2019 at 00:35)</a>:</h4>
<p>Context: <a href="https://stackoverflow.com/q/49806352/155423" target="_blank" title="https://stackoverflow.com/q/49806352/155423">https://stackoverflow.com/q/49806352/155423</a></p>
<p>Is there any hope for closures to be GAT-enabled?</p>



<a name="160532001"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/GATs%20and%20closure%20traits/near/160532001" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/GATs.20and.20closure.20traits.html#160532001">(Mar 12 2019 at 00:42)</a>:</h4>
<p>I think ostensibly you could add 2 new GAT enabled <code>GATFnMut</code>, <code>GATFn</code> and have closures implement those</p>



<a name="160621186"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/GATs%20and%20closure%20traits/near/160621186" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Taylor Cramer <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/GATs.20and.20closure.20traits.html#160621186">(Mar 12 2019 at 23:39)</a>:</h4>
<p>This is also needed for async closures</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>